//
//  YeeHomeCollectionReusableView.m
//  YeeShopProject
//
//  Created by CoderYee on 2017/3/1.
//  Copyright © 2017年 CoderYee. All rights reserved.
//

#import "YeeHomeCollectionReusableView.h"

@implementation YeeHomeCollectionReusableView
-(instancetype)initWithFrame:(CGRect)frame
{
    if (self=[super initWithFrame:frame])
    {
        [self addOwnViews];
    }
    return self;
}
-(void)addOwnViews
{
    _describeLable=[[UILabel alloc] init];
    _describeLable.font=[UIFont Y_systemFontOfSize:13];
    _describeLable.text=@"男士服装";
    _describeLable.textAlignment=NSTextAlignmentCenter;
    _describeLable.textColor=kBlackColor;
    [self addSubview:_describeLable];
    [_describeLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self);
        make.height.mas_equalTo(21);
    }];
    UIView *leftView=[[UIView alloc] init];
    [leftView setBackgroundColor:[UIColor grayColor]];
    leftView.alpha=0.3;
    [self addSubview:leftView];
    [leftView mas_makeConstraints:^(MASConstraintMaker *make)
     {   make.right.equalTo(_describeLable.mas_left);
         make.centerY.equalTo(self);
         make.width.mas_equalTo(25);
         make.height.mas_equalTo(1.0f);
     }];
    UIView *rightView=[[UIView alloc] init];
    [rightView setBackgroundColor:[UIColor grayColor]];
    rightView.alpha=0.3;
    [self addSubview:rightView];
    [rightView mas_makeConstraints:^(MASConstraintMaker *make)
     {
         make.left.equalTo(_describeLable.mas_right);
         make.centerY.equalTo(self);
         make.width.mas_equalTo(25);
         make.height.mas_equalTo(1.0f);
     }];
    
}
@end
